package com.qfjy.homework.xuxing;

/**
 * @author : 徐兴
 * @version : 1.0
 * @date : 2022/6/29 19:33
 */
public class SecretaryProxy implements Boss {

    private Boss boss = null;

    public SecretaryProxy() {
        this.boss = new SecretaryProxy();
    }

    public SecretaryProxy(Boss boss) {
        this.boss = boss;
    }

    /**
     * 构造函数，传递委托者
     *
     * @param objects 委托者
     */
    public SecretaryProxy(Object... objects) {

    }

    @Override
    public void sign() {
        this.before();
        this.boss.sign();
        this.after();
    }

    /**
     * 预处理
     */
    private void before() {
        //do something
        System.out.println("签名之前预约...");
    }

    /**
     * 后处理
     */
    private void after() {
        //do something
        System.out.println("签名之后欢送...");
    }
}
